<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<c:if test="${not empty childMenu.children}">
<li class="dropdown-submenu">
    <a href="#">${childMenu.moduleName}</a>
    <ul class="dropdown-menu">
    <c:forEach var="childMenu" items="${childMenu.children}">
     	<c:set var="childMenu" value="${childMenu}" scope="request"/>
		<jsp:include page="menuTree.jsp"/>
     	<li><a href="#" onclick="loadPageAjax('${childMenu.moduleId}','${childMenu.moduleName}','${childMenu.moduleUrl}')">${childMenu.moduleName}</a></li>
    </c:forEach>
    </ul>
</li>
</c:if>